package com.topboya.officeuser.utils;

import com.topboya.officeuser.entity.Office;
import com.topboya.officeuser.entity.User;
import com.topboya.officeuser.exception.OfficeUserException;

/**
 * @className IfUser
 * @Author xiaxin
 * @Date 2020/8/9 9:16
 * @Version 1.0
 **/
public class IfUser {

    public static Boolean ifUser(User user){

        if(user.getDelFlag().length()>1){
            throw new OfficeUserException("delFlag字段位数为1，请输入1位字段长度");
        }
        return true;
    }
}
